package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.UUID;

/**
 * 店铺实体类
 */
@Table(name = "c_shop")
public class Shop implements Serializable {

    @Id
    private String shopId= UUID.randomUUID().toString();//主键

    private String shopName;//店铺名

    private String shopCategoryId;//店铺类别id

    private Integer shopStatus=0;//店铺状态：0：运营，-1：停止运营

    private String shopDescribe;//店铺简介

    private String shopTelephone;//店铺固定电话

    private String businessLicense;//店铺的营业执照

    private String bankCard;//银行卡

    private String openingBank;//开户行

    private String bankHolder;//银行卡的开户人

    private String openingBankAddress;//开户行地址

    private Integer applicantStatus;//申请状态：0提交申请，1：申请成功，2：申请失败 ,3.跳转我的店铺

    private String applicantName;//申请人姓名（法人）

    private String applicantMobile;//申请人手机号

    private String applicantEmail;//申请人邮箱

    private String applicantIdNumber;//身份证号

    private String idCardFront;//身份证正面

    private String idCardReverse;//身份证反面

    private String customerId;//申请人id

    private String shopProvince;//店铺所在的省份

    private String shopCity;//城市

    private String shopCounty;//区/县

    private String shopAddress;//店铺的详细地址

    private Integer shopDel=0;//逻辑删除：0默认，-1删除

    private String createTime= DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    private String delTime;//删除时间   

    private String updateTime;//修改时间

    private Integer goodsNumber;//商品数量

    private Integer collectionNumber;//收藏数量

    private String rejectionReason;//被驳回理由

    private String shopLogo;//店铺商标

    private Integer noWithdrawal;//未结算

    private Integer haveWithdrawal;//已结算

    public Integer getNoWithdrawal() {
        return noWithdrawal;
    }

    public void setNoWithdrawal(Integer noWithdrawal) {
        this.noWithdrawal = noWithdrawal;
    }

    public Integer getHaveWithdrawal() {
        return haveWithdrawal;
    }

    public void setHaveWithdrawal(Integer haveWithdrawal) {
        this.haveWithdrawal = haveWithdrawal;
    }

    public String getRejectionReason() {
        return rejectionReason;
    }

    public void setRejectionReason(String rejectionReason) {
        this.rejectionReason = rejectionReason;
    }



    public String getShopLogo() {
        return shopLogo;
    }

    public void setShopLogo(String shopLogo) {
        this.shopLogo = shopLogo;
    }

    public Integer getCollectionNumber() {
        return collectionNumber;
    }

    public void setCollectionNumber(Integer collectionNumber) {
        this.collectionNumber = collectionNumber;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Integer getApplicantStatus() {
        return applicantStatus;
    }

    public void setApplicantStatus(Integer applicantStatus) {
        this.applicantStatus = applicantStatus;
    }

    public Integer getShopDel() {
        return shopDel;
    }

    public void setShopDel(Integer shopDel) {
        this.shopDel = shopDel;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId == null ? null : shopId.trim();
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName == null ? null : shopName.trim();
    }

    public String getShopCategoryId() {
        return shopCategoryId;
    }

    public void setShopCategoryId(String shopCategoryId) {
        this.shopCategoryId = shopCategoryId == null ? null : shopCategoryId.trim();
    }

    public Integer getShopStatus() {
        return shopStatus;
    }

    public void setShopStatus(Integer shopStatus) {
        this.shopStatus = shopStatus;
    }

    public String getShopDescribe() {
        return shopDescribe;
    }

    public void setShopDescribe(String shopDescribe) {
        this.shopDescribe = shopDescribe == null ? null : shopDescribe.trim();
    }

    public String getShopTelephone() {
        return shopTelephone;
    }

    public void setShopTelephone(String shopTelephone) {
        this.shopTelephone = shopTelephone == null ? null : shopTelephone.trim();
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense == null ? null : businessLicense.trim();
    }

    public String getBankCard() {
        return bankCard;
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard == null ? null : bankCard.trim();
    }

    public String getOpeningBank() {
        return openingBank;
    }

    public void setOpeningBank(String openingBank) {
        this.openingBank = openingBank == null ? null : openingBank.trim();
    }

    public String getBankHolder() {
        return bankHolder;
    }

    public void setBankHolder(String bankHolder) {
        this.bankHolder = bankHolder == null ? null : bankHolder.trim();
    }

    public String getOpeningBankAddress() {
        return openingBankAddress;
    }

    public void setOpeningBankAddress(String openingBankAddress) {
        this.openingBankAddress = openingBankAddress == null ? null : openingBankAddress.trim();
    }

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName == null ? null : applicantName.trim();
    }

    public String getApplicantMobile() {
        return applicantMobile;
    }

    public void setApplicantMobile(String applicantMobile) {
        this.applicantMobile = applicantMobile == null ? null : applicantMobile.trim();
    }

    public String getApplicantEmail() {
        return applicantEmail;
    }

    public void setApplicantEmail(String applicantEmail) {
        this.applicantEmail = applicantEmail == null ? null : applicantEmail.trim();
    }

    public String getApplicantIdNumber() {
        return applicantIdNumber;
    }

    public void setApplicantIdNumber(String applicantIdNumber) {
        this.applicantIdNumber = applicantIdNumber == null ? null : applicantIdNumber.trim();
    }

    public String getIdCardFront() {
        return idCardFront;
    }

    public void setIdCardFront(String idCardFront) {
        this.idCardFront = idCardFront == null ? null : idCardFront.trim();
    }

    public String getIdCardReverse() {
        return idCardReverse;
    }

    public void setIdCardReverse(String idCardReverse) {
        this.idCardReverse = idCardReverse == null ? null : idCardReverse.trim();
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId == null ? null : customerId.trim();
    }

    public String getShopProvince() {
        return shopProvince;
    }

    public void setShopProvince(String shopProvince) {
        this.shopProvince = shopProvince == null ? null : shopProvince.trim();
    }

    public String getShopCity() {
        return shopCity;
    }

    public void setShopCity(String shopCity) {
        this.shopCity = shopCity == null ? null : shopCity.trim();
    }

    public String getShopCounty() {
        return shopCounty;
    }

    public void setShopCounty(String shopCounty) {
        this.shopCounty = shopCounty == null ? null : shopCounty.trim();
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress == null ? null : shopAddress.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}